<template>
  <div :class="{ 'is-active': isActive }" @click="toggleClick">
    <svg-icon name="hamburger" width="20" height="20" />
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },

  methods: {
    toggleClick() {
      this.$emit('toggleClick');
    }
  }
}
</script>

<style scoped>
.svg-icon {
  vertical-align: middle;
}

.is-active {
  transform: rotate(180deg);
}
</style>